/**
 * Copyright 2016-2018 mobaas.com
 */
package com.mobaas.devops.service;

import com.mobaas.devops.JsonResult;
import com.mobaas.devops.PageList;
import com.mobaas.devops.model.Admin;

/**
 * 
 * @author billy zhang
 * 
 */
public interface AdminService {

	JsonResult<Admin> selectAdminForLogin(String username, String password, String ip);
	
	Admin selectAdminById(int adminId);
	
	PageList<Admin> selectAdminList(String keyword, int pageNum, int pageSize);

	void insertAdmin(Admin adm);
	
	int updateAdmin(Admin adm);

	int selectAdminCountByName(String name);

	int deleteAdmin(int admId);
}
